<template>
  <div class="ct">
    <div class="ct2" v-for="(item, index) in this.content" :key="index">
      <div class="photo"></div>
      <div class="ct_box">
        <div>{{ item.creator }}</div>
        <div :style="{ fontSize: '0.8rem', color: '#ccc' }">
          {{ item.company }}
        </div>
        <div :style="{ fontSize: '0.8rem', color: '#ccc' }">
          {{ item.createTime }}
        </div>
      </div>
      <div>
        <van-icon name="arrow" size="1.2rem" />
      </div>
    </div>
  </div>
</template>

<script>
import { getCustView } from "@/request/api";
export default {
  props: ["id"],
  data() {
    return {
      content: [],
    };
  },
  created() {
    getCustView({
      id: this.id,
    }).then((res) => {
      console.log("aaa", res.data.datas[2]);
      this.content = res.data.datas[2].data;
    });
  },
};
</script>

<style scoped>
.ct {
  margin: 0.5rem auto 0;
}
.ct2 {
  width: 95%;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  border-bottom: 1px solid #ccc;
  box-sizing: border-box;
}
.photo {
  width: 4rem;
  height: 4rem;
  background: url("../assets/旗下企业-头像.png") no-repeat;
  background-size: 100% 100%;
  margin-right: 0.6rem;
}
.ct_box {
  flex: 1;
}
</style>>